import * as React from 'react'
import SideBar from './SiderBar'
import { AdminRoutes } from '../../router/PageRouter'
import './index.less'

export default class Admin extends React.Component {

	render() {
		const authorized = true
		return (
			<div className="admin-bg">
				<div id="admin-page">
					<div id="left-content">
						<SideBar />
					</div>
					<div id="right-content">
						<AdminRoutes authorized={authorized} />
					</div>
				</div>
			</div>
		)
	}
}